package com.ruoyi.cinema.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cinema.mapper.ScheduleAreaInfoMapper;
import com.ruoyi.cinema.domain.ScheduleAreaInfo;
import com.ruoyi.cinema.service.IScheduleAreaInfoService;

/**
 * 排期区域信息Service业务层处理
 *
 * @author HHAOYU
 * @date 2020-12-08
 */
@Service
public class ScheduleAreaInfoServiceImpl extends ServiceImpl<ScheduleAreaInfoMapper, ScheduleAreaInfo> implements IScheduleAreaInfoService  {
    @Autowired
    private ScheduleAreaInfoMapper scheduleAreaInfoMapper;

    /**
     * 查询排期区域信息
     *
     * @param id 排期区域信息ID
     * @return 排期区域信息
     */
    @Override
    public ScheduleAreaInfo selectScheduleAreaInfoById(Long id)
    {
        return scheduleAreaInfoMapper.selectScheduleAreaInfoById(id);
    }

    /**
     * 查询排期区域信息列表
     *
     * @param scheduleAreaInfo 排期区域信息
     * @return 排期区域信息
     */
    @Override
    public List<ScheduleAreaInfo> selectScheduleAreaInfoList(ScheduleAreaInfo scheduleAreaInfo)
    {
        return scheduleAreaInfoMapper.selectScheduleAreaInfoList(scheduleAreaInfo);
    }

    /**
     * 新增排期区域信息
     *
     * @param scheduleAreaInfo 排期区域信息
     * @return 结果
     */
    @Override
    public int insertScheduleAreaInfo(ScheduleAreaInfo scheduleAreaInfo)
    {
        return scheduleAreaInfoMapper.insertScheduleAreaInfo(scheduleAreaInfo);
    }

    /**
     * 修改排期区域信息
     *
     * @param scheduleAreaInfo 排期区域信息
     * @return 结果
     */
    @Override
    public int updateScheduleAreaInfo(ScheduleAreaInfo scheduleAreaInfo)
    {
        return scheduleAreaInfoMapper.updateScheduleAreaInfo(scheduleAreaInfo);
    }

    /**
     * 批量删除排期区域信息
     *
     * @param ids 需要删除的排期区域信息ID
     * @return 结果
     */
    @Override
    public int deleteScheduleAreaInfoByIds(Long[] ids)
    {
        return scheduleAreaInfoMapper.deleteScheduleAreaInfoByIds(ids);
    }

    /**
     * 删除排期区域信息信息
     *
     * @param id 排期区域信息ID
     * @return 结果
     */
    @Override
    public int deleteScheduleAreaInfoById(Long id)
    {
        return scheduleAreaInfoMapper.deleteScheduleAreaInfoById(id);
    }
}
